package com.youbo.cloudmall.search.vo;

import lombok.Data;

import java.util.List;

/**
 * 封装页面所有可能传递过来的查询条件
 * catalog3Id=225&keyword=小米&sort=saleCount_asc
 *
 *
 * @author youbo
 * @version 1.0
 * @date 2021/10/14 11:27
 */
@Data
public class SearchParam {

    private String keyword;//页面传过来的全文匹配关键字
    private Long catalog3Id;//3级分类ID

    //saleCount_asc/desc    skuPrice_asc/desc   hotScore_asc/desc
    private String sort;//排序条件

    /**
     过滤条件
     hasStock(是否有货),skuPrice区间,brandId,catalod3Id,attrs
     hasStock=0/1
     skuPrice=1_500  / _500  /500_
     attrs=2_5寸:6寸
     */
    private Integer hasStock=1;//是否只显示有货   0:无库存   1：有库存
    private String skuPrice;//价格区间
    private List<Long> brandId;//品牌ID,可以多选
    private List<String> attrs;//按照属性进行筛选
    private Integer pageNum;//页码

}
